package co.yixiang.modules.member.entity.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value = "yx_user_integral_detail")
@Data
public class YxUserIntegralDetail implements Serializable {

    @TableId
    private Long id;
    /** 用户id */
    private String uid;
    /** 说明 */
    private String title;
    /** 积分 */
    private Integer number;
    /** 积分总数 */
    private Integer balance;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableLogic
    @JsonIgnore
    private Integer isDel;


}
